package org.xtframe.bean;

/**
 * 
 * @author SunYong
 *
 * 系统配置
 */
public class SystemConfig {
	/********************************/
	///数据库操作方法常量///
	//注册
	public static final int FUNC_REGISTER = 1;
	
	//用户登录
	public static final int FUNC_LOGIN = 2;
	
	//退出登录
	public static final int FUNC_LOGOUT = 3;
	
	//查询方法
	public static final int FUNC_EXECUTEQUERY = 4;
	
	//更新方法
	public static final int FUNC_EXECUTEUPDATE = 5;
	
	//自增主键的插入方法
	public static final int FUNC_INSERT = 6;
	
	//事务提交
	public static final int FUNC_EXECUTETRANSACTION = 7;
	
	//批量查询
	public static final int FUNC_EXECUTEQUERYTRANSACTION = 8;
	
	//获取菜单
	public static final int FUNC_MENU = 9;
	
	//刷新服务器加载数据
	public static final int FUNC_SERVER_BREAK = 10;
	
	//获取当前用户信息
	public static final int FUNC_USERINFO = 11;
	
	//获取服务器数据
	public static final int FUNC_SERVER_DATA = 12;
	
	//批量获取服务器数据
	public static final int FUNC_SERVER_DATA_LIST = 13;
	
	//执行存储过程
	public static final int FUNC_PREPARECALL = 14;
	
	//分页查询数据
	public static final int FUNC_PAGING = 15;
	
	//获取流程定义列表
	public static final int FUNC_PROCESSDEFINITION_LIST = 51;
	
	//获取流程实例列表
	public static final int FUNC_PROCESSINSTANCE_LIST = 52;
	
	//获取任务列表
	public static final int FUNC_TASK_LIST = 53;
	
	//开启流程
	public static final int FUNC_STARTPROCESS = 54;
	
	//流程图信息
	public static final int FUNC_PROCESSVIEW = 55;
	
	//完成任务
	public static final int FUNC_COMPLETETASK = 56;
	
	//任务页面
	public static final int FUNC_TASKPAGE = 57;
	
	//删除部署
	public static final int FUNC_DELETEDEPLOYMENT = 58;
	
	/********************************/
	///配置数据类型///
	// 水印位置（无、左上、右上、居中、左下、右下）
	public enum WatermarkPosition {
		no, topLeft, topRight, center, bottomLeft, bottomRight
	}
	
	public static final String SERVER_DATA = "serverData";// 服务器数据
	public static final String LOGIN_USER = "userData";// 登陆用户
	
	public static final String EXTENSION_SEPARATOR = ",";// 文件扩展名分隔符
	
	public static final String UPLOAD_IMAGE_DIR = "/upload/image/";// 图片文件上传目录
	public static final String UPLOAD_MEDIA_DIR = "/upload/media/";// 媒体文件上传目录
	public static final String UPLOAD_FILE_DIR = "/upload/file/";// 其它文件上传目录
	
	public static final String UPLOAD_DEPLOY_DIR = "/upload/deploy/";// 流程部署文件上传目录
	
	/********************************/
	private String dbType;
	
	///服务器sql///
	// 获取下一个注册序列值
	private String nextvalRegSequence1Sql;
	
	private String nextvalRegSequence2Sql;
	
	// SQL对象初始化sql
	private String serviceInitSqlSql;
	
	// 菜单对象初始化sql
	private String serviceInitMenuSql;

	// 逻辑对象初始化sql
	private String serviceInitLogicSql;
	
	// 资源对象初始化sql
	private String serviceInitResSql;
	
	// 数据字典对象初始化sql
	private String serviceInitDictionarySql;
	
	// 角色对象初始化sql
	private String serviceInitRoleSql;
	
	// 系统数据初始化sql
	private String serviceInitSystemDataSql;
	
	// 角色对应菜单sql
	private String roleInitMenuSql;
	
	// 角色对应SQLsql
	private String roleInitSqlSql;
	
	// 角色对应逻辑sql
	private String roleInitLogicSql;
	
	// 角色对应资源sql
	private String roleInitResSql;
	
	// 用户登陆sql
	private String userInitInfoSql;
	
	// 获取用户机构sql
	private String userInitOrganSql;
	
	// 获取用户岗位sql
	private String userInitJobSql;
	
	// 获取用户角色sql
	private String userInitRoleSql;
	
	// 获取用户对应的授权权
	private String userInitOptroleSql;
	
	// 获取用户机构数据
	private String userOrganDataSql;
	
	// 数据库初始化sql
	private String serviceInitDataBaseSql;
	
	// 数据库对应SQLsql
	private String dataBaseInitSqlSql;
	
	// 获取任务页面
	private String taskPageSql;
	
	// 开启流程
	private String startProcessSql;
	
	// 任务记录
	private String taskRecordSql;
	
	// 删除任务记录
	private String deleteTaskRecordSql;
	
	// 停止流程
	private String stopProcessSql;
	
	/********************************/
	///数据正则表达式验证///
	//匹配中文字符的正则表达式
	private String verifyIsChinese;
	
	//匹配双字节字符(包括汉字在内)
	private String verifyIs2Byte;
	
	//匹配空白行的正则表达式
	private String verifyIsBlank;
	
	//匹配HTML标记的正则表达式
	private String verifyIsHtml;
	
	//匹配首尾空白字符的正则表达式
	private String verifyIsTrim;
	
	//匹配Email地址的正则表达式
	private String verifyIsEmail;
	
	//匹配网址URL的正则表达式
	private String verifyIsUrl;
	
	//匹配帐号是否合法(字母开头，允许5-16字节，允许字母数字下划线)
	private String verifyIsName;
	
	//匹配国内电话号码 形式如 0511-4405222 或 021-87888822 
	private String verifyIsChinaTel;
	
	//匹配腾讯QQ号
	private String verifyIsQQ;
	
	//匹配中国邮政编码
	private String verifyIsPostal;
	
	//匹配身份证
	private String verifyIsIdentity;
	
	//匹配ip地址
	private String verifyIsIp;
	
	//匹配由26个英文字母组成的字符串
	private String verifyIsLetter;
	
	//匹配由26个英文字母的大写组成的字符串
	private String verifyIsBLetter;
	
	//匹配由26个英文字母的小写组成的字符串 
	private String verifyIsSLetter;
	
	//匹配由数字和26个英文字母组成的字符串
	private String verifyIsNumLetter;
	
	//匹配由数字、26个英文字母或者下划线组成的字符串
	private String verifyIsNum_Letter;
	
	//匹配正整数
	private String verifyIsZInt;
	
	//匹配负整数
	private String verifyIsFInt;
	
	//匹配整数
	private String verifyIsInt;
	
	//匹配非负整数（正整数 + 0）
	private String verifyIsZInt0;
	
	//匹配非正整数（负整数 + 0）
	private String verifyIsFInt0;
	
	//匹配正浮点数
	private String verifyIsZDouble;
	
	//匹配负浮点数
	private String verifyIsFDouble;
	
	//匹配浮点数
	private String verifyIsDouble;
	
	//匹配非负浮点数（正浮点数 + 0）
	private String verifyIsZDouble0;
	
	//匹配正浮点数
	private String verifyIsFDouble0;
	
	private String loginPageUri;// 登陆页面
	
	private Integer uploadLimit;// 文件上传最大值,0表示无限制,单位KB
	
	private String allowedUploadImageExtension;// 允许上传的图片文件扩展名（为空表示不允许上传图片文件）
	private String allowedUploadMediaExtension;// 允许上传的媒体文件扩展名（为空表示不允许上传媒体文件）
	private String allowedUploadFileExtension;// 允许上传的文件扩展名（为空表示不允许上传文件）
	
	private String allowedUploadDeployExtension;// 允许上传的部署文件扩展名（为空表示不允许上传文件）
	
	/*==================================================*/

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public String getNextvalRegSequence1Sql() {
		return nextvalRegSequence1Sql;
	}

	public void setNextvalRegSequence1Sql(String nextvalRegSequence1Sql) {
		this.nextvalRegSequence1Sql = nextvalRegSequence1Sql;
	}

	public String getNextvalRegSequence2Sql() {
		return nextvalRegSequence2Sql;
	}

	public void setNextvalRegSequence2Sql(String nextvalRegSequence2Sql) {
		this.nextvalRegSequence2Sql = nextvalRegSequence2Sql;
	}

	public String getServiceInitSqlSql() {
		return serviceInitSqlSql;
	}

	public void setServiceInitSqlSql(String serviceInitSqlSql) {
		this.serviceInitSqlSql = serviceInitSqlSql;
	}

	public String getServiceInitMenuSql() {
		return serviceInitMenuSql;
	}

	public void setServiceInitMenuSql(String serviceInitMenuSql) {
		this.serviceInitMenuSql = serviceInitMenuSql;
	}

	public String getServiceInitLogicSql() {
		return serviceInitLogicSql;
	}

	public void setServiceInitLogicSql(String serviceInitLogicSql) {
		this.serviceInitLogicSql = serviceInitLogicSql;
	}

	public String getServiceInitResSql() {
		return serviceInitResSql;
	}

	public void setServiceInitResSql(String serviceInitResSql) {
		this.serviceInitResSql = serviceInitResSql;
	}

	public String getServiceInitDictionarySql() {
		return serviceInitDictionarySql;
	}

	public void setServiceInitDictionarySql(String serviceInitDictionarySql) {
		this.serviceInitDictionarySql = serviceInitDictionarySql;
	}

	public String getServiceInitRoleSql() {
		return serviceInitRoleSql;
	}

	public void setServiceInitRoleSql(String serviceInitRoleSql) {
		this.serviceInitRoleSql = serviceInitRoleSql;
	}

	public String getServiceInitSystemDataSql() {
		return serviceInitSystemDataSql;
	}

	public void setServiceInitSystemDataSql(String serviceInitSystemDataSql) {
		this.serviceInitSystemDataSql = serviceInitSystemDataSql;
	}

	public String getRoleInitMenuSql() {
		return roleInitMenuSql;
	}

	public void setRoleInitMenuSql(String roleInitMenuSql) {
		this.roleInitMenuSql = roleInitMenuSql;
	}

	public String getRoleInitSqlSql() {
		return roleInitSqlSql;
	}

	public void setRoleInitSqlSql(String roleInitSqlSql) {
		this.roleInitSqlSql = roleInitSqlSql;
	}

	public String getRoleInitLogicSql() {
		return roleInitLogicSql;
	}

	public void setRoleInitLogicSql(String roleInitLogicSql) {
		this.roleInitLogicSql = roleInitLogicSql;
	}

	public String getRoleInitResSql() {
		return roleInitResSql;
	}

	public void setRoleInitResSql(String roleInitResSql) {
		this.roleInitResSql = roleInitResSql;
	}

	public String getUserInitInfoSql() {
		return userInitInfoSql;
	}

	public void setUserInitInfoSql(String userInitInfoSql) {
		this.userInitInfoSql = userInitInfoSql;
	}

	public String getUserInitOrganSql() {
		return userInitOrganSql;
	}

	public void setUserInitOrganSql(String userInitOrganSql) {
		this.userInitOrganSql = userInitOrganSql;
	}

	public String getUserInitJobSql() {
		return userInitJobSql;
	}

	public void setUserInitJobSql(String userInitJobSql) {
		this.userInitJobSql = userInitJobSql;
	}

	public String getUserInitRoleSql() {
		return userInitRoleSql;
	}

	public void setUserInitRoleSql(String userInitRoleSql) {
		this.userInitRoleSql = userInitRoleSql;
	}

	public String getUserInitOptroleSql() {
		return userInitOptroleSql;
	}

	public void setUserInitOptroleSql(String userInitOptroleSql) {
		this.userInitOptroleSql = userInitOptroleSql;
	}

	public String getUserOrganDataSql() {
		return userOrganDataSql;
	}

	public void setUserOrganDataSql(String userOrganDataSql) {
		this.userOrganDataSql = userOrganDataSql;
	}

	public String getServiceInitDataBaseSql() {
		return serviceInitDataBaseSql;
	}

	public void setServiceInitDataBaseSql(String serviceInitDataBaseSql) {
		this.serviceInitDataBaseSql = serviceInitDataBaseSql;
	}

	public String getDataBaseInitSqlSql() {
		return dataBaseInitSqlSql;
	}

	public void setDataBaseInitSqlSql(String dataBaseInitSqlSql) {
		this.dataBaseInitSqlSql = dataBaseInitSqlSql;
	}

	public String getTaskPageSql() {
		return taskPageSql;
	}

	public void setTaskPageSql(String taskPageSql) {
		this.taskPageSql = taskPageSql;
	}

	public String getStartProcessSql() {
		return startProcessSql;
	}

	public void setStartProcessSql(String startProcessSql) {
		this.startProcessSql = startProcessSql;
	}

	public String getTaskRecordSql() {
		return taskRecordSql;
	}

	public void setTaskRecordSql(String taskRecordSql) {
		this.taskRecordSql = taskRecordSql;
	}

	public String getDeleteTaskRecordSql() {
		return deleteTaskRecordSql;
	}

	public void setDeleteTaskRecordSql(String deleteTaskRecordSql) {
		this.deleteTaskRecordSql = deleteTaskRecordSql;
	}

	public String getStopProcessSql() {
		return stopProcessSql;
	}

	public void setStopProcessSql(String stopProcessSql) {
		this.stopProcessSql = stopProcessSql;
	}

	public String getVerifyIsChinese() {
		return verifyIsChinese;
	}

	public void setVerifyIsChinese(String verifyIsChinese) {
		this.verifyIsChinese = verifyIsChinese;
	}

	public String getVerifyIs2Byte() {
		return verifyIs2Byte;
	}

	public void setVerifyIs2Byte(String verifyIs2Byte) {
		this.verifyIs2Byte = verifyIs2Byte;
	}

	public String getVerifyIsBlank() {
		return verifyIsBlank;
	}

	public void setVerifyIsBlank(String verifyIsBlank) {
		this.verifyIsBlank = verifyIsBlank;
	}

	public String getVerifyIsHtml() {
		return verifyIsHtml;
	}

	public void setVerifyIsHtml(String verifyIsHtml) {
		this.verifyIsHtml = verifyIsHtml;
	}

	public String getVerifyIsTrim() {
		return verifyIsTrim;
	}

	public void setVerifyIsTrim(String verifyIsTrim) {
		this.verifyIsTrim = verifyIsTrim;
	}

	public String getVerifyIsEmail() {
		return verifyIsEmail;
	}

	public void setVerifyIsEmail(String verifyIsEmail) {
		this.verifyIsEmail = verifyIsEmail;
	}

	public String getVerifyIsUrl() {
		return verifyIsUrl;
	}

	public void setVerifyIsUrl(String verifyIsUrl) {
		this.verifyIsUrl = verifyIsUrl;
	}

	public String getVerifyIsName() {
		return verifyIsName;
	}

	public void setVerifyIsName(String verifyIsName) {
		this.verifyIsName = verifyIsName;
	}

	public String getVerifyIsChinaTel() {
		return verifyIsChinaTel;
	}

	public void setVerifyIsChinaTel(String verifyIsChinaTel) {
		this.verifyIsChinaTel = verifyIsChinaTel;
	}

	public String getVerifyIsQQ() {
		return verifyIsQQ;
	}

	public void setVerifyIsQQ(String verifyIsQQ) {
		this.verifyIsQQ = verifyIsQQ;
	}

	public String getVerifyIsPostal() {
		return verifyIsPostal;
	}

	public void setVerifyIsPostal(String verifyIsPostal) {
		this.verifyIsPostal = verifyIsPostal;
	}

	public String getVerifyIsIdentity() {
		return verifyIsIdentity;
	}

	public void setVerifyIsIdentity(String verifyIsIdentity) {
		this.verifyIsIdentity = verifyIsIdentity;
	}

	public String getVerifyIsIp() {
		return verifyIsIp;
	}

	public void setVerifyIsIp(String verifyIsIp) {
		this.verifyIsIp = verifyIsIp;
	}

	public String getVerifyIsLetter() {
		return verifyIsLetter;
	}

	public void setVerifyIsLetter(String verifyIsLetter) {
		this.verifyIsLetter = verifyIsLetter;
	}

	public String getVerifyIsBLetter() {
		return verifyIsBLetter;
	}

	public void setVerifyIsBLetter(String verifyIsBLetter) {
		this.verifyIsBLetter = verifyIsBLetter;
	}

	public String getVerifyIsSLetter() {
		return verifyIsSLetter;
	}

	public void setVerifyIsSLetter(String verifyIsSLetter) {
		this.verifyIsSLetter = verifyIsSLetter;
	}

	public String getVerifyIsNumLetter() {
		return verifyIsNumLetter;
	}

	public void setVerifyIsNumLetter(String verifyIsNumLetter) {
		this.verifyIsNumLetter = verifyIsNumLetter;
	}

	public String getVerifyIsNum_Letter() {
		return verifyIsNum_Letter;
	}

	public void setVerifyIsNum_Letter(String verifyIsNum_Letter) {
		this.verifyIsNum_Letter = verifyIsNum_Letter;
	}

	public String getVerifyIsZInt() {
		return verifyIsZInt;
	}

	public void setVerifyIsZInt(String verifyIsZInt) {
		this.verifyIsZInt = verifyIsZInt;
	}

	public String getVerifyIsFInt() {
		return verifyIsFInt;
	}

	public void setVerifyIsFInt(String verifyIsFInt) {
		this.verifyIsFInt = verifyIsFInt;
	}

	public String getVerifyIsInt() {
		return verifyIsInt;
	}

	public void setVerifyIsInt(String verifyIsInt) {
		this.verifyIsInt = verifyIsInt;
	}

	public String getVerifyIsZInt0() {
		return verifyIsZInt0;
	}

	public void setVerifyIsZInt0(String verifyIsZInt0) {
		this.verifyIsZInt0 = verifyIsZInt0;
	}

	public String getVerifyIsFInt0() {
		return verifyIsFInt0;
	}

	public void setVerifyIsFInt0(String verifyIsFInt0) {
		this.verifyIsFInt0 = verifyIsFInt0;
	}

	public String getVerifyIsZDouble() {
		return verifyIsZDouble;
	}

	public void setVerifyIsZDouble(String verifyIsZDouble) {
		this.verifyIsZDouble = verifyIsZDouble;
	}

	public String getVerifyIsFDouble() {
		return verifyIsFDouble;
	}

	public void setVerifyIsFDouble(String verifyIsFDouble) {
		this.verifyIsFDouble = verifyIsFDouble;
	}

	public String getVerifyIsDouble() {
		return verifyIsDouble;
	}

	public void setVerifyIsDouble(String verifyIsDouble) {
		this.verifyIsDouble = verifyIsDouble;
	}

	public String getVerifyIsZDouble0() {
		return verifyIsZDouble0;
	}

	public void setVerifyIsZDouble0(String verifyIsZDouble0) {
		this.verifyIsZDouble0 = verifyIsZDouble0;
	}

	public String getVerifyIsFDouble0() {
		return verifyIsFDouble0;
	}

	public void setVerifyIsFDouble0(String verifyIsFDouble0) {
		this.verifyIsFDouble0 = verifyIsFDouble0;
	}

	public String getLoginPageUri() {
		return loginPageUri;
	}

	public void setLoginPageUri(String loginPageUri) {
		this.loginPageUri = loginPageUri;
	}

	public Integer getUploadLimit() {
		return uploadLimit;
	}

	public void setUploadLimit(Integer uploadLimit) {
		this.uploadLimit = uploadLimit;
	}

	public String getAllowedUploadImageExtension() {
		return allowedUploadImageExtension;
	}

	public void setAllowedUploadImageExtension(String allowedUploadImageExtension) {
		this.allowedUploadImageExtension = allowedUploadImageExtension;
	}

	public String getAllowedUploadMediaExtension() {
		return allowedUploadMediaExtension;
	}

	public void setAllowedUploadMediaExtension(String allowedUploadMediaExtension) {
		this.allowedUploadMediaExtension = allowedUploadMediaExtension;
	}

	public String getAllowedUploadFileExtension() {
		return allowedUploadFileExtension;
	}

	public void setAllowedUploadFileExtension(String allowedUploadFileExtension) {
		this.allowedUploadFileExtension = allowedUploadFileExtension;
	}

	public String getAllowedUploadDeployExtension() {
		return allowedUploadDeployExtension;
	}

	public void setAllowedUploadDeployExtension(String allowedUploadDeployExtension) {
		this.allowedUploadDeployExtension = allowedUploadDeployExtension;
	}
}
